package com.jlkf.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jlkf.service.StarRemarkService;
/**
 * 评价星级标签记录
 * @author DN
 *
 */
@Controller
@RequestMapping("starRemark")
public class StarRemarkController {

	@Autowired
	private StarRemarkService starRemarkService;
	/**
	 * 用户对司机的评价
	 * @param json
	 * @return
	 */
	@RequestMapping("userAppraise")
	private Object userAppraise(@RequestBody String json){
		return starRemarkService.addUserAppraise(json);
	}
	@RequestMapping("getList")
	private Object getList(){
		return starRemarkService.getList();
	}
}
